/*
 * Documentation.java
 *
 * Created on 21 marzo 2004, 20.15
 */

package net.ermannofranco.xml.schema;

import net.ermannofranco.xml.Tag;

/**
 * 
 * @author ermanno (ermanno.franco@gmail.com)
 */
public class Documentation extends SchemaTag {

	private static final long serialVersionUID = 7925833343892001768L;

	/**
	 * Creates a new instance of Documentation Protetto
	 * 
	 * @param level
	 *            livello di indentazione
	 * @param container
	 *            tag contenitore
	 */
	protected Documentation(int level, ISchemaTag container) {
		super("documentation", level, container);
	}

	public Documentation setLanguage(String language) {
		addAttr("xml:lang", language);
		return this;
	}

	public Documentation addText(String text) {
		addCDATA(text);
		return this;
	}

	public Documentation setSource(String uri) {
		addAttr("source", uri);
		return this;
	}
}
